package yx.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import org.hibernate.annotations.GenericGenerator;

/**
 * BsCertificate entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_certificate", catalog = "")
public class BsCertificate implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer version;
	private Integer studentId;
	private String finishFlag;
	private String certificateName;
	private String certificateNo;
	private String drawMethod;
	private String drawPerson;
	private String memo;
	private String deleteFlag;
	private Integer optId;
	private Timestamp optTime;

	// Constructors

	/** default constructor */
	public BsCertificate() {
	}

	/** full constructor */
	public BsCertificate(Integer studentId, String finishFlag, String certificateName, String certificateNo, String drawMethod, String drawPerson, String memo, String deleteFlag, Integer optId, Timestamp optTime) {
		this.studentId = studentId;
		this.finishFlag = finishFlag;
		this.certificateName = certificateName;
		this.certificateNo = certificateNo;
		this.drawMethod = drawMethod;
		this.drawPerson = drawPerson;
		this.memo = memo;
		this.deleteFlag = deleteFlag;
		this.optId = optId;
		this.optTime = optTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Version
	@Column(name = "VERSION")
	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Column(name = "STUDENT_ID")
	public Integer getStudentId() {
		return this.studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	@Column(name = "FINISH_FLAG", length = 2)
	public String getFinishFlag() {
		return this.finishFlag;
	}

	public void setFinishFlag(String finishFlag) {
		this.finishFlag = finishFlag;
	}

	@Column(name = "CERTIFICATE_NAME", length = 32)
	public String getCertificateName() {
		return this.certificateName;
	}

	public void setCertificateName(String certificateName) {
		this.certificateName = certificateName;
	}

	@Column(name = "CERTIFICATE_NO", length = 32)
	public String getCertificateNo() {
		return this.certificateNo;
	}

	public void setCertificateNo(String certificateNo) {
		this.certificateNo = certificateNo;
	}

	@Column(name = "DRAW_METHOD", length = 2)
	public String getDrawMethod() {
		return this.drawMethod;
	}

	public void setDrawMethod(String drawMethod) {
		this.drawMethod = drawMethod;
	}

	@Column(name = "DRAW_PERSON", length = 32)
	public String getDrawPerson() {
		return this.drawPerson;
	}

	public void setDrawPerson(String drawPerson) {
		this.drawPerson = drawPerson;
	}

	@Column(name = "MEMO")
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	@Column(name = "DELETE_FLAG", length = 1)
	public String getDeleteFlag() {
		return this.deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Column(name = "OPT_ID")
	public Integer getOptId() {
		return this.optId;
	}

	public void setOptId(Integer optId) {
		this.optId = optId;
	}

	@Column(name = "OPT_TIME", length = 19)
	public Timestamp getOptTime() {
		return this.optTime;
	}

	public void setOptTime(Timestamp optTime) {
		this.optTime = optTime;
	}

}